/**
 * jims
 */
package com.jims.master.modules.base.inquiry.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import com.jims.master.modules.base.user.entity.MasterBaseinfo;
import com.jims.master.modules.base.user.entity.MasterDoctorinfo;
import org.hibernate.validator.constraints.Length;

import java.util.Date;
import java.util.List;

/**
 * 问诊Entity
 * @author chent
 * @version 2017-05-12
 */
public class InquiryAsk extends DataEntity<InquiryAsk> {
	
	private static final long serialVersionUID = 1L;
	private String acceptAskId;   //医生接收问题id
	private String addAskId;      //追问Id
	private String personId;		// 用户id
	private String orderNo;		// 订单号
	private String doctor;		// 医生id
	private String title;		// 标题
	private String name;		// 姓名
	private String sex;		// 性别
	private String age;		// 年龄
	private String subject;		// 科室类型
	private String disease;		// 疾病类型
	private String askPath;     //提问图片
	private String content;		// 提问内容
	private String stat;		// 状态 字典组号:inquiry_ask_status
	private String readState;   //追问状态：0.有新的追问消息1.追问消息已读
	private String adutuser;		// 审核人
	private Date askTime;		// 提问时间
	private Date aduitTime;		// 审核时间
	private Date beginTime;		// 开始时间
	private Date endTime;		// 结束时间
	private String scores;		// 评价分数
	private String evaluate;		// 评价内容
	private Date evaTime;		// 评价时间
	private String ispay;		// 是否付费 0 免费咨询 1付费咨询
	private String serviceTypeId;		// 服务类型id
	private String paystatus;		// 付费状态 0 未付款 1付款
	private String notReadNum;

	private InquiryReply inquiryReply;
	private MasterDoctorinfo masterDoctorinfo;
	private MasterBaseinfo masterBaseinfo;
	private List<InquiryReply> inquiryReplyList;
	private List askPathList;  //图片集合
	//private MasterBaseinfo masterBaseinfoDoctor;

	private int startPage;
	private String conntFlag;

	public List getAskPathList() {
		return askPathList;
	}

	public void setAskPathList(List askPathList) {
		this.askPathList = askPathList;
	}

	public String getNotReadNum() {
		return notReadNum;
	}

	public void setNotReadNum(String notReadNum) {
		this.notReadNum = notReadNum;
	}

	public String getReadState() {
		return readState;
	}

	public void setReadState(String readState) {
		this.readState = readState;
	}

	public List<InquiryReply> getInquiryReplyList() {
		return inquiryReplyList;
	}

	public void setInquiryReplyList(List<InquiryReply> inquiryReplyList) {
		this.inquiryReplyList = inquiryReplyList;
	}

	public String getAcceptAskId() {
		return acceptAskId;
	}

	public void setAcceptAskId(String acceptAskId) {
		this.acceptAskId = acceptAskId;
	}

	public String getAskPath() {
		return askPath;
	}

	public void setAskPath(String askPath) {
		this.askPath = askPath;
	}

	public int getStartPage() {
		return startPage;
	}

	public void setStartPage(int startPage) {
		this.startPage = startPage;
	}

	public String getConntFlag() {
		return conntFlag;
	}

	public void setConntFlag(String conntFlag) {
		this.conntFlag = conntFlag;
	}

	public MasterBaseinfo getMasterBaseinfo() {
		return masterBaseinfo;
	}

	public void setMasterBaseinfo(MasterBaseinfo masterBaseinfo) {
		this.masterBaseinfo = masterBaseinfo;
	}

	/*public MasterBaseinfo getMasterBaseinfoDoctor() {
		return masterBaseinfoDoctor;
	}

	public void setMasterBaseinfoDoctor(MasterBaseinfo masterBaseinfoDoctor) {
		this.masterBaseinfoDoctor = masterBaseinfoDoctor;
	}*/

	public MasterDoctorinfo getMasterDoctorinfo() {
		return masterDoctorinfo;
	}

	public void setMasterDoctorinfo(MasterDoctorinfo masterDoctorinfo) {
		this.masterDoctorinfo = masterDoctorinfo;
	}

	public InquiryReply getInquiryReply() {
		return inquiryReply;
	}

	public void setInquiryReply(InquiryReply inquiryReply) {
		this.inquiryReply = inquiryReply;
	}

	public InquiryAsk() {
		super();
	}

	public String getAddAskId() {
		return addAskId;
	}

	public void setAddAskId(String addAskId) {
		this.addAskId = addAskId;
	}

	public InquiryAsk(String id){
		super(id);
	}

	@Length(min=1, max=64, message="用户id长度必须介于 1 和 64 之间")
	public String getPersonId() {
		return personId;
	}

	public void setPersonId(String personId) {
		this.personId = personId;
	}
	
	@Length(min=0, max=64, message="订单号长度必须介于 0 和 64 之间")
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@Length(min=0, max=64, message="医生id长度必须介于 0 和 64 之间")
	public String getDoctor() {
		return doctor;
	}

	public void setDoctor(String doctor) {
		this.doctor = doctor;
	}
	
	@Length(min=0, max=200, message="标题长度必须介于 0 和 200 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=20, message="姓名长度必须介于 0 和 20 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=3, message="年龄长度必须介于 0 和 3 之间")
	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}
	
	@Length(min=0, max=64, message="科室类型长度必须介于 0 和 64 之间")
	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}
	
	@Length(min=0, max=64, message="疾病类型长度必须介于 0 和 64 之间")
	public String getDisease() {
		return disease;
	}

	public void setDisease(String disease) {
		this.disease = disease;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=1, message="状态 字典组号:inquiry_ask_status长度必须介于 0 和 1 之间")
	public String getStat() {
		return stat;
	}

	public void setStat(String stat) {
		this.stat = stat;
	}
	
	@Length(min=0, max=200, message="审核人长度必须介于 0 和 200 之间")
	public String getAdutuser() {
		return adutuser;
	}

	public void setAdutuser(String adutuser) {
		this.adutuser = adutuser;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAskTime() {
		return askTime;
	}

	public void setAskTime(Date askTime) {
		this.askTime = askTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAduitTime() {
		return aduitTime;
	}

	public void setAduitTime(Date aduitTime) {
		this.aduitTime = aduitTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=11, message="评价分数长度必须介于 0 和 11 之间")
	public String getScores() {
		return scores;
	}

	public void setScores(String scores) {
		this.scores = scores;
	}
	
	@Length(min=0, max=200, message="评价内容长度必须介于 0 和 200 之间")
	public String getEvaluate() {
		return evaluate;
	}

	public void setEvaluate(String evaluate) {
		this.evaluate = evaluate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEvaTime() {
		return evaTime;
	}

	public void setEvaTime(Date evaTime) {
		this.evaTime = evaTime;
	}
	
	@Length(min=0, max=1, message="是否付费 0 免费咨询 1付费咨询长度必须介于 0 和 1 之间")
	public String getIspay() {
		return ispay;
	}

	public void setIspay(String ispay) {
		this.ispay = ispay;
	}
	
	@Length(min=0, max=64, message="服务类型id长度必须介于 0 和 64 之间")
	public String getServiceTypeId() {
		return serviceTypeId;
	}

	public void setServiceTypeId(String serviceTypeId) {
		this.serviceTypeId = serviceTypeId;
	}
	
	@Length(min=0, max=1, message="付费状态 0 未付款 1付款长度必须介于 0 和 1 之间")
	public String getPaystatus() {
		return paystatus;
	}

	public void setPaystatus(String paystatus) {
		this.paystatus = paystatus;
	}
	
}